<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="ss"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<form:form action="${action }" commandName="book" method="POST">
	<table border="0" cellspacing="5" cellpadding="0" width="100%" class="formTable tplBorder">
		<tr>
			<td width="15%"></td>
			<td width="35%"></td>
			<td width="15%"></td>
			<td width="35%"></td>
		</tr>
		<tr>
			<td class="label"><fmt:message key="book.name" /></td>
			<td><form:input path="nazev" /></td>
			<td colspan="2"></td>
		</tr>
		<tr>
			<td class="label"><fmt:message key="book.pocet" /></td>
			<td><form:input path="pocetKnih" /></td>
			<td colspan="2"></td>
		</tr>
		<tr>
			<td class="label"><fmt:message key="book.rok" /></td>
			<td><form:input id="datepicker" path="rokVydani" /></td>
			<td colspan="2"></td>
		</tr>
		<tr>
			<td class="label"><fmt:message key="book.nakladatelstvi" /></td>
			<td><form:select items="${book.nakladatelstviList }" itemLabel="nazev" itemValue="id" path="nakladatelstviId" /></td>
			<td colspan="2"></td>
		</tr>
		<tr>
			<td class="label"><fmt:message key="book.author" /></td>
			<td><form:select items="${book.autorList }" multiple="true" itemLabel="label" itemValue="id" path="autorIds" /></td>
			<td colspan="2"></td>
		</tr>
		<tr>
			<td class="label"><fmt:message key="book.department" /></td>
			<td><form:select items="${book.oddeleniList }" itemLabel="nazev" itemValue="id" path="oddeleniId" /></td>
			<td colspan="2"></td>
		</tr>
	</table>
</form:form>